/*
 * @Author: your name
 * @Date: 2021-09-08 11:00:54
 * @LastEditTime: 2021-09-08 11:14:46
 * @LastEditors: Please set LastEditors
 * @Description: In User Settings Edit
 * @FilePath: \bigdate\src\ntils\outlogin.ts
 */
// 推出登录
import { store } from '../store/index'
import { SetLocalStrong } from './hooks'

export const useOutligin = () => {
    store.state.routerArr = []
    store.commit('user/USER_OUTLOGIN') 
    location.reload()
    SetLocalStrong({ key: 'APP_ROUTER', value: '/' })
}